<!doctype html>

<html lang="<%=page.language%>">

<% include header.ejs %>

<body id="data">

<script src="<%=cstatic%>/js/lib/jquery.validate<%=min%>.js"></script>

<section>
    <header>
        <% include top.ejs %>
        <% include navigation.ejs %>
    </header>

  <div style="margin-bottom: 10px">
    <a class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary" href="/<%= page.getURL() %>?request=hosting"><span class="ui-button-icon-primary ui-icon ui-icon-pencil"></span><span class="ui-button-text">托管数据</span></a>
    <a class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary" href="/<%= page.getURL() %>?request=reload"><span class="ui-button-icon-primary ui-icon ui-icon-power"></span><span class="ui-button-text">数据重载</span></a>
  </div>

  <div id="content_data">

    <% if (typeof config !== "undefined") { %>
        <form method="post" action="/<%= page.getURL() %>" id="record">
          <input type="hidden" name="id" value="<%=config.id%>" />

          <fieldset>
            <p>修改系统设置(最好在config.json文件中)</p>

            <p class="notification error">警告：当修改主站名称，请确保您能够访问到站点<br />您能够设置多个以“,”分割的名称。例如："old-name.org,new-name.org,www.new-name.org".</p>

            <div><label for="hostname">站名</label>
                 <input type="text" id="hostname" name="hostname" value="<%=config.hostname %>" />
            </div>

            <div><label for="owneremail">E-mail</label>
                 <input type="email" id="owneremail" name="owneremail" value="<%=config.owneremail %>" disabled="disabled" />
            </div>
          </fieldset>

          <div id="action_buttons">
            <input type="submit" name="request" value="Save" />
          </div>
        </form>
    <% } %>
  </div>

  <% include footer.ejs %>
</section>
</body>
</html>